using System.ComponentModel.DataAnnotations;

namespace RAGApp.Api.Models;

public class Document
{
    public Guid Id { get; set; }
    
    [Required]
    [MaxLength(255)]
    public string Title { get; set; } = string.Empty;
    
    [Required]
    public string Content { get; set; } = string.Empty;
    
    [MaxLength(255)]
    public string? Source { get; set; }
    
    public DateTime CreatedAt { get; set; }
    
    public DateTime UpdatedAt { get; set; }
    
    // Navigation property
    public ICollection<DocumentChunk> Chunks { get; set; } = new List<DocumentChunk>();
} 